package com.example.rabbit.enums;

import com.example.rabbit.config.DirectConfig;
import lombok.Getter;

/**
 *
 */
@Getter
public enum DirectEnum {

    /**
     * 撤单/成交
     */
    TRADE_ENTRUST_ORDER(DirectConfig.TRADED_ENTRUST_ORDER_EXCHANGE, DirectConfig.TRADED_ENTRUST_ORDER_QUEUE, "#"),
     ;


    /**
     * 交换机名称
     */
    private String exchange;


    /**
     * 队列名称
     */
    private String queue;

    /**
     * 路由
     */
    private String routingKey;


    DirectEnum(String exchange, String queue, String routingKey) {
        this.exchange = exchange;
        this.queue = queue;
        this.routingKey = routingKey;
    }
}
